import React from "react";
import './index.scss'

interface foodObj {
    children:{
        id:string,
        url:string,
        description:string
    }
}
const Food:React.FC<foodObj> = ({children})=> {
    return(
        <div className="food">
            <a href="#">
                <img src={children.url} alt="foodImg" />
                <div>{children.description}</div>
            </a>
        </div>
    )
}
export default Food